package net.sxjr.mbg.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 角色
 * </p>
 *
 * @author cuixc
 * @since 2020-12-10
 */
public class JbdpRole extends Model<JbdpRole> {

    private static final long serialVersionUID=1L;

    /**
     * 角色ID
     */
    @TableId("ROLE_ID")
    private String roleId;

    /**
     * 角色名称
     */
    @TableField("ROLE_NAME")
    private String roleName;

    /**
     * 角色描述
     */
    @TableField("ROLE_NOTE")
    private String roleNote;

    /**
     * 组织ID
     */
    @TableField("PARTY_ID")
    private String partyId;

    /**
     * 所属系统
     */
    @TableField("APP_ID")
    private String appId;


    public String getRoleId() {
        return roleId;
    }

    public JbdpRole setRoleId(String roleId) {
        this.roleId = roleId;
        return this;
    }

    public String getRoleName() {
        return roleName;
    }

    public JbdpRole setRoleName(String roleName) {
        this.roleName = roleName;
        return this;
    }

    public String getRoleNote() {
        return roleNote;
    }

    public JbdpRole setRoleNote(String roleNote) {
        this.roleNote = roleNote;
        return this;
    }

    public String getPartyId() {
        return partyId;
    }

    public JbdpRole setPartyId(String partyId) {
        this.partyId = partyId;
        return this;
    }

    public String getAppId() {
        return appId;
    }

    public JbdpRole setAppId(String appId) {
        this.appId = appId;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.roleId;
    }

    @Override
    public String toString() {
        return "JbdpRole{" +
        "roleId=" + roleId +
        ", roleName=" + roleName +
        ", roleNote=" + roleNote +
        ", partyId=" + partyId +
        ", appId=" + appId +
        "}";
    }
}
